package org.dylan.demo;

import org.dylan.test.SpringContextTest;
import org.hibernate.search.FullTextSession;
import org.hibernate.search.Search;
import org.junit.Test;
/**
 * 为相关的数据建立索引文件
 * @author dylan
 * @date 2012-9-3 下午1:23:36
 */
public class Indexed extends SpringContextTest {

	@Test
	public void testIndex() {
		
		FullTextSession ftSession = Search.getFullTextSession(session);
		try {
			ftSession.createIndexer().startAndWait();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
